package com.example.imchat.model.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.imchat.model.dao.ContactTable;
import com.example.imchat.model.dao.InviteTable;

public class DBHelper extends SQLiteOpenHelper {
    public DBHelper( Context context,  String name) {
        super(context, name, null, 1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {

        //创建联系人的表
        db.execSQL(ContactTable.CREAT_TAB);
        //创建邀请信息的表
        db.execSQL(InviteTable.CREAT_TABLE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
